#include "muk_core.h"

static uint8_t active_layout;
extern mku_stat_t scan_init();

mku_stat_t muk_init(mku_mode_t mode) {
    switch (mode) {
    case MKU_KV_INIT:
        scan_init();
        LOG_INFO(LOG_MODULE, "scan module init!");
        break;
    default:
        break;
    }
    active_layout = 0;
    return MKU_SUCCESS;
}

int application_start() {
    LOG_INFO(LOG_MODULE, "Application start!");
    extern int32_t cli_init(void);
    cli_init();
    muk_init(MKU_KV_INIT);
    while (1) {
        krhino_task_sleep(50);
    }

    return 0;
}